package com.lixl.threadpool;

public class DefaultThreadPoolTest {

	public static void main(String[] args) {
		
		DefaultThreadPool<Runnable> pool = new DefaultThreadPool<Runnable>(5);
		
		for (int i = 0; i < 20; i++) {
			pool.execute(new Runnable() {
				
				@Override
				public void run() {
					System.out.println(Thread.currentThread().getName());
				}
			});
		}
		pool.shutdown();

	}

}
